﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace Prototipo
{
    public partial class About : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            dt = new DataTable();
            DataColumn dc1 = new DataColumn("Actividad");
            DataColumn dc2 = new DataColumn("Fecha Inicio");
            DataColumn dc3 = new DataColumn("Fecha Final");
            DataColumn dc4 = new DataColumn("Presupuesto Bs.");
            DataColumn dc5 = new DataColumn("Directora Encargada");
            dt.Columns.Add(dc1);
            dt.Columns.Add(dc2);
            dt.Columns.Add(dc3);
            dt.Columns.Add(dc4);
            dt.Columns.Add(dc5);
            DataRow dr1 = dt.NewRow();
            DataRow dr2 = dt.NewRow();
            GridView1.DataSource = dt;
            GridView1.DataBind();

            dr1[0] = "Comadres";
            dr1[1] = "18/02/2012";
            dr1[2] = "28/02/2012";
            dr1[3] = "500";
            dr1[4] = "Lorena";
            dr2[0] = "Compadres";
            dr2[1] = "18/03/2012";
            dr2[2] = "28/03/2012";
            dr2[3] = "700";
            dr2[4] = "Jimena";
            dt.Rows.Add(dr1);
            dt.Rows.Add(dr2);
            GridView1.DataSource = dt;
            GridView1.DataBind();
    }
         DataTable dt;
        protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Redirect("AgregarActividad.aspx");
        }

       
    }
}
    